package com.hyb.i18n.beetl;

import org.beetl.ext.spring.BeetlGroupUtilConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;

import com.hyb.i18n.beetl.funs.I18nFunction;

public class BeetlGroupConfiguration extends BeetlGroupUtilConfiguration {


	@Autowired
	ApplicationContext applicationContext;

	@Override
	public void initOther() {
		groupTemplate.registerFunction("i18n", new I18nFunction(applicationContext));
	}
}
